package com.milkshopbackend.milkshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;  // 会自动映射到 username
    private String password;  // 会自动映射到 password
    private String phone;     // 会自动映射到 phone
    private String email;     // 会自动映射到 email
    private String avatar;    // 会自动映射到 avatar
    private Integer status;   // 会自动映射到 status
    private LocalDateTime createTime;  // 会自动映射到 create_time
    private LocalDateTime updateTime;  // 会自动映射到 update_time
}
